Page({
    data: {
        xData : {}
    },
    onLoad: function (options) {
        let that = this
        that.xInit(options.id)
    },

    xInit : async function (id) {
        let that = this
        await wx.cloud.callFunction({
            name: 'scale_manage',
            data: {
                action: "get_scale_info",
                return_data_type: 3,
                scale_number: id
            }
        }).then(res => {
            let data = res.result
            that.setData({
                xData : data
            })
        })
    }
})